<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/webwork" prefix="ww"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>ShoppingCart: Sales for <ww:property value="item.name"/></title>
  </head>
	<body>
        <%@ include file="/admin-header.html" %>
        <h4>Current item information for <ww:property value="item.name"/></h3>
        
	
	<ww:if test="hasActionErrors()">
	<ul>
	   <ww:iterator value="actionErrors">
		<li style="color: red;"><ww:property /></li>
	   </ww:iterator>
	</ul>
        </ww:if>
        <table border="1">
        <tr><th>Name</th><th>Description</th><th>Cost</th><th>Sku</th></tr>
        <tr><td><ww:property value="item.name"/></td><td><ww:property value="item.description"/></td><td><ww:property value="item.cost"/>
        </td><td><ww:property value="item.sku"/></td></tr>
        </table>
        
        <h4> Sales history for <ww:property value="item.name"/></h4>
        <table border="1">
        <tr><td>Total orders:  </td><td align="right"><ww:property value="totalOrders"/></td></tr>
        <tr><td>Total volume sold:</td><td align="right"><ww:property value="totalVolume"/></td></tr>
        <tr><td>Average volume per order: </td><td align="right"><ww:property value="averageVolume"/></td></tr>
        <tr><td>Net sales: </td><td align="right"><ww:property value="netSales"/></td></tr>
        <tr><td>Average price: </td><td align="right"><ww:property value="averagePrice"/></td></tr>
        <p/>
        </table>
        <ww:a href="LogOut.action">Logout</ww:a>
    </body>
</html>